package net.kong.sns.rest.client.rest;

import net.kong.org.springframework.http.converter.FormHttpMessageConverter;
import net.kong.org.springframework.http.MediaType;
import net.kong.org.springframework.util.MultiValueMap;

import java.nio.charset.Charset;

/**
 * @author <a href="mailto:lanhuai@gmail.com">Ning Yubin</a>
 * @version $Id: FormHttpMessageConverterUTF8.java,v 1.1 2009/07/31 07:14:21 ningyubin Exp $
 */
public class FormHttpMessageConverterUTF8 extends FormHttpMessageConverter {
    @Override
    protected MediaType getContentType(MultiValueMap<String, String> stringStringMultiValueMap) {
        return new MediaType("application", "x-www-form-urlencoded", Charset.forName("UTF-8"));
    }
}
